package net.mysoft.budgetsoft.system.pagemodel;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

import net.mysoft.framework.i18n.Locales;
import net.mysoft.framework.util.TimeUtil;

/**
 * 
 * @author dagongPGP v1.0
 * @link <a href=http://www.dagongsoft.net>北京大公信软科技有限公司</a>
 * 
 * @version $Revision: 1.00 $Date: 2013-07-10 15:42:17
 */

public class FlowTaskNode implements java.io.Serializable {

	private String ids;
	private int page;// 当前页
	private int rows;// 每页显示记录数
	private String sort;// 排序字段名
	private String order;// 按什么排序(asc,desc)

	private String ftn_ID;
	private Integer ftn_Status;
	private String flo_ID;
	private String fln_ID;
	private String fln_PID;

	private String ftnids;

	private String flowTemplateNodeID;
	private String ftn_UserCode;
	private String ftn_File;
	private String ftn_FromFile;
	private String ftn_FromText;
	private String ftn_Text;
	private String ftn_TransactCue;
	private String ftn_HandleUserCode;
	private String ftn_HandleUserName_cn;
	private String ftn_HandleUserName_en;
	private String ftn_HandleUserName;
	private Integer ftn_HandleResult = 1;
	private String ftn_HandleResult_Str;
	private java.util.Date ftn_HandleBeginTime;
	private java.util.Date ftn_HandleEndTime;
	private Integer ftn_Deadline;
	private Integer ftn_RemindInterval;
	private String ftn_Assignee;
	private String ftn_FormUrl;
	private String ftn_IndeptRoleCode;
	private String ftn_IndeptComCode;
	private String ftn_IndeptUserCode;
	private Integer ftn_Index;
	private Integer ftn_State;
	private String ftn_Class;
	private Integer ftn_Type;
	private String ftn_Name_en;
	private String ftn_Name_cn;
	private String ftn_DetractCode;
	private String ftn_TextName;
	private Integer ftn_XiangMuJD;
	private String xiangMuJBXXBH;
	private String renWuJBXXBH;
	private String xiangMuMC;
	private String qiYeMC;
	private String handleBeginTimeXS;
	private String handleEndTimeXS;
	private String yeWuZLBH;
	private String yeWuZLMC;
	private Date datetimeStart; // 下达开始时间
	private Date datetimeEnd; // 下达结束时间
	private Date enddatetimeStart; // 完成开始时间
	private Date enddatetimeEnd; // 完成结束时间
	private Integer xiangMuZT;
	private String zuZhiJGMC;
	private Date flowCreateTime;
	private String liuChengJD;
	private String flnids;
	private String cuiBanRId;
	private String qiYeMCs;
	private String buZhouNames;
	private String historyEdit;// 补录数据

	private String datagridType; // 列表类型
	private String LiuChengJDCLR;
	private String xiangMuBH;
	private String xiangMuYCLX;
	private Integer ftn_UserNum;
	private Integer ftn_MustPass;
	private String ftn_ReturnTo;

	private String editVersion;

	private String ftn_Assignees;

	//private java.util.Date chuShiPJRQ;
	//private java.util.Date pingJiJZR;
	private String chuShiPJRQXS;
	private String pingJiJZRXS;
	
	

	public String getChuShiPJRQXS() {
		return chuShiPJRQXS;
	}

	public void setChuShiPJRQXS(String chuShiPJRQXS) {
		this.chuShiPJRQXS = chuShiPJRQXS;
	}

	public String getPingJiJZRXS() {
		return pingJiJZRXS;
	}
	
	public void setPingJiJZRXS(String pingJiJZRXS) {
		this.pingJiJZRXS = pingJiJZRXS;
	}

	/*public java.util.Date getChuShiPJRQ() {
		return chuShiPJRQ;
	}

	public void setChuShiPJRQ(java.util.Date chuShiPJRQ) {
		this.chuShiPJRQ = chuShiPJRQ;
	}

	public String getChuShiPJRQXS() {
		if(this.chuShiPJRQ != null && !"".equals(this.chuShiPJRQ)) {
			chuShiPJRQXS = new SimpleDateFormat("yyyy-MM-dd").format(this.chuShiPJRQ);
		}
		return chuShiPJRQXS;
	}

	public void setChuShiPJRQXS(String chuShiPJRQXS) {
		this.chuShiPJRQXS = chuShiPJRQXS;
	}

	public java.util.Date getPingJiJZR() {
		return pingJiJZR;
	}

	public void setPingJiJZR(java.util.Date pingJiJZR) {
		this.pingJiJZR = pingJiJZR;
	}

	public String getPingJiJZRXS() {
		if(this.pingJiJZR != null && !"".equals(this.pingJiJZR)) {
			pingJiJZRXS = new SimpleDateFormat("yyyy-MM-dd").format(this.pingJiJZR);
		}
		return pingJiJZRXS;
	}
*/


	public String getFtn_HandleUserName() {
		return ftn_HandleUserName;
	}

	public void setFtn_HandleUserName(String ftn_HandleUserName) {
		this.ftn_HandleUserName = ftn_HandleUserName;
	}

	public String getHistoryEdit() {
		return historyEdit;
	}

	public void setHistoryEdit(String historyEdit) {
		this.historyEdit = historyEdit;
	}

	public String getFlowTemplateNodeID() {
		return flowTemplateNodeID;
	}

	public void setFlowTemplateNodeID(String flowTemplateNodeID) {
		this.flowTemplateNodeID = flowTemplateNodeID;
	}

	public Integer getFtn_UserNum() {
		return ftn_UserNum;
	}

	public void setFtn_UserNum(Integer ftn_UserNum) {
		this.ftn_UserNum = ftn_UserNum;
	}

	public Integer getFtn_MustPass() {
		return ftn_MustPass;
	}

	public void setFtn_MustPass(Integer ftn_MustPass) {
		this.ftn_MustPass = ftn_MustPass;
	}

	public String getFtn_ReturnTo() {
		return ftn_ReturnTo;
	}

	public void setFtn_ReturnTo(String ftn_ReturnTo) {
		this.ftn_ReturnTo = ftn_ReturnTo;
	}

	public String getXiangMuYCLX() {
		return xiangMuYCLX;
	}

	public void setXiangMuYCLX(String xiangMuYCLX) {
		this.xiangMuYCLX = xiangMuYCLX;
	}

	public String getTimeConsuming() {
		if (ftn_HandleEndTime != null) {
			return TimeUtil.format(this.getFtn_HandleBeginTime(), this.getFtn_HandleEndTime());
		} else {
			return TimeUtil.format(this.getFtn_HandleBeginTime(), new Date());
		}

	}

	public String getZongHS() {
		if (this.getFlowCreateTime() == null) {
			return null;
		}
		return TimeUtil.format(this.getFlowCreateTime(), new Date());
	}

	public Integer getFtn_HandleResult() {
		return ftn_HandleResult;
	}

	public void setFtn_HandleResult(Integer ftn_HandleResult) {
		this.ftn_HandleResult = ftn_HandleResult;
	}

	public String getFtn_HandleResult_Str() {
		if (this.getFtn_HandleResult() != null && this.getFtn_HandleResult() == 1) {
			return "通过";
		} else if (this.getFtn_HandleResult() != null && this.getFtn_HandleResult() == 0) {
			return "退回";
		} else {
			return "";
		}
	}

	public void setFtn_HandleResult_Str(String ftn_HandleResult_Str) {
		this.ftn_HandleResult_Str = ftn_HandleResult_Str;
	}

	public Integer getFtn_XiangMuJD() {
		return ftn_XiangMuJD;
	}

	public void setFtn_XiangMuJD(Integer ftn_XiangMuJD) {
		this.ftn_XiangMuJD = ftn_XiangMuJD;
	}

	public String getFtn_HandleUserName_cn() {
		return ftn_HandleUserName_cn;
	}

	public void setFtn_HandleUserName_cn(String ftn_HandleUserName_cn) {
		this.ftn_HandleUserName_cn = ftn_HandleUserName_cn;
	}

	public String getFtn_HandleUserName_en() {
		return ftn_HandleUserName_en;
	}

	public void setFtn_HandleUserName_en(String ftn_HandleUserName_en) {
		this.ftn_HandleUserName_en = ftn_HandleUserName_en;
	}

	public String getFtn_HandleUserCode() {
		return ftn_HandleUserCode;
	}

	public void setFtn_HandleUserCode(String ftn_HandleUserCode) {
		this.ftn_HandleUserCode = ftn_HandleUserCode;
	}

	/*
	 * public String getFtn_HandleUserName() { Locale locale = Locales.getLocale(); return Locale.CHINA.equals(locale) ? this.getFtn_HandleUserName_cn() : this.getFtn_HandleUserName_en(); }
	 */

	public String getftn_Name() {
		Locale locale = Locales.getLocale();
		return Locale.CHINA.equals(locale) ? this.ftn_Name_cn : this.ftn_Name_en;
	}

	public String getFtn_Name() {
		Locale locale = Locales.getLocale();
		return Locale.CHINA.equals(locale) ? this.ftn_Name_cn : this.ftn_Name_en;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public void setXiangMuMC(String xiangMuMC) {
		this.xiangMuMC = xiangMuMC;
	}

	public String getXiangMuMC() {
		return xiangMuMC;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getFtn_ID() {
		return this.ftn_ID;
	}

	public void setFtn_ID(String ftn_ID) {
		this.ftn_ID = ftn_ID;
	}

	public Integer getFtn_Status() {
		return this.ftn_Status;
	}

	public void setFtn_Status(Integer ftn_Status) {
		this.ftn_Status = ftn_Status;
	}

	public String getFlo_ID() {
		return this.flo_ID;
	}

	public void setFlo_ID(String flo_ID) {
		this.flo_ID = flo_ID;
	}

	public String getFln_ID() {
		return this.fln_ID;
	}

	public void setFln_ID(String fln_ID) {
		this.fln_ID = fln_ID;
	}

	public String getFln_PID() {
		return this.fln_PID;
	}

	public void setFln_PID(String fln_PID) {
		this.fln_PID = fln_PID;
	}

	public String getFtn_UserCode() {
		return this.ftn_UserCode;
	}

	public void setFtn_UserCode(String ftn_UserCode) {
		this.ftn_UserCode = ftn_UserCode;
	}

	public String getFtn_File() {
		return this.ftn_File;
	}

	public void setFtn_File(String ftn_File) {
		this.ftn_File = ftn_File;
	}

	public String getFtn_FromFile() {
		return this.ftn_FromFile;
	}

	public void setFtn_FromFile(String ftn_FromFile) {
		this.ftn_FromFile = ftn_FromFile;
	}

	public String getFtn_FromText() {
		return this.ftn_FromText;
	}

	public void setFtn_FromText(String ftn_FromText) {
		this.ftn_FromText = ftn_FromText;
	}

	public String getFtn_Text() {
		return this.ftn_Text;
	}

	public void setFtn_Text(String ftn_Text) {
		this.ftn_Text = ftn_Text;
	}

	public String getFtn_TransactCue() {
		return this.ftn_TransactCue;
	}

	public void setFtn_TransactCue(String ftn_TransactCue) {
		this.ftn_TransactCue = ftn_TransactCue;
	}

	public java.util.Date getFtn_HandleBeginTime() {
		return this.ftn_HandleBeginTime;
	}

	public void setFtn_HandleBeginTime(java.util.Date ftn_HandleBeginTime) {
		this.ftn_HandleBeginTime = ftn_HandleBeginTime;
	}

	public java.util.Date getFtn_HandleEndTime() {
		return this.ftn_HandleEndTime;
	}

	public void setFtn_HandleEndTime(java.util.Date ftn_HandleEndTime) {
		this.ftn_HandleEndTime = ftn_HandleEndTime;
	}

	public Integer getFtn_Deadline() {
		return this.ftn_Deadline;
	}

	public void setFtn_Deadline(Integer ftn_Deadline) {
		this.ftn_Deadline = ftn_Deadline;
	}

	public Integer getFtn_RemindInterval() {
		return this.ftn_RemindInterval;
	}

	public void setFtn_RemindInterval(Integer ftn_RemindInterval) {
		this.ftn_RemindInterval = ftn_RemindInterval;
	}

	public String getFtn_Assignee() {
		return this.ftn_Assignee;
	}

	public void setFtn_Assignee(String ftn_Assignee) {
		this.ftn_Assignee = ftn_Assignee;
	}

	public String getFtn_FormUrl() {
		return this.ftn_FormUrl;
	}

	public void setFtn_FormUrl(String ftn_FormUrl) {
		this.ftn_FormUrl = ftn_FormUrl;
	}

	public String getFtn_IndeptRoleCode() {
		return this.ftn_IndeptRoleCode;
	}

	public void setFtn_IndeptRoleCode(String ftn_IndeptRoleCode) {
		this.ftn_IndeptRoleCode = ftn_IndeptRoleCode;
	}

	public String getFtn_IndeptComCode() {
		return this.ftn_IndeptComCode;
	}

	public void setFtn_IndeptComCode(String ftn_IndeptComCode) {
		this.ftn_IndeptComCode = ftn_IndeptComCode;
	}

	public String getFtn_IndeptUserCode() {
		return this.ftn_IndeptUserCode;
	}

	public void setFtn_IndeptUserCode(String ftn_IndeptUserCode) {
		this.ftn_IndeptUserCode = ftn_IndeptUserCode;
	}

	public Integer getFtn_Index() {
		return this.ftn_Index;
	}

	public void setFtn_Index(Integer ftn_Index) {
		this.ftn_Index = ftn_Index;
	}

	public Integer getFtn_State() {
		return this.ftn_State;
	}

	public void setFtn_State(Integer ftn_State) {
		this.ftn_State = ftn_State;
	}

	public String getFtn_Class() {
		return this.ftn_Class;
	}

	public void setFtn_Class(String ftn_Class) {
		this.ftn_Class = ftn_Class;
	}

	public Integer getFtn_Type() {
		return this.ftn_Type;
	}

	public void setFtn_Type(Integer ftn_Type) {
		this.ftn_Type = ftn_Type;
	}

	public String getFtn_Name_en() {
		return this.ftn_Name_en;
	}

	public void setFtn_Name_en(String ftn_Name_en) {
		this.ftn_Name_en = ftn_Name_en;
	}

	public String getFtn_Name_cn() {
		return this.ftn_Name_cn;
	}

	public void setFtn_Name_cn(String ftn_Name_cn) {
		this.ftn_Name_cn = ftn_Name_cn;
	}

	public String getFtn_DetractCode() {
		return this.ftn_DetractCode;
	}

	public void setFtn_DetractCode(String ftn_DetractCode) {
		this.ftn_DetractCode = ftn_DetractCode;
	}

	public String getFtn_TextName() {
		return this.ftn_TextName;
	}

	public void setFtn_TextName(String ftn_TextName) {
		this.ftn_TextName = ftn_TextName;
	}

	public String getXiangMuJBXXBH() {
		return this.xiangMuJBXXBH;
	}

	public void setXiangMuJBXXBH(String xiangMuJBXXBH) {
		this.xiangMuJBXXBH = xiangMuJBXXBH;
	}

	public String getRenWuJBXXBH() {
		return this.renWuJBXXBH;
	}

	public void setRenWuJBXXBH(String renWuJBXXBH) {
		this.renWuJBXXBH = renWuJBXXBH;
	}

	public String getQiYeMC() {
		return qiYeMC;
	}

	public void setQiYeMC(String qiYeMC) {
		this.qiYeMC = qiYeMC;
	}

	public String getHandleBeginTimeXS() {
		return new SimpleDateFormat("yyyy-MM-dd HH:mm").format(this.ftn_HandleBeginTime);
	}

	public void setHandleBeginTimeXS(String handleBeginTimeXS) {
		this.handleBeginTimeXS = handleBeginTimeXS;
	}

	public String getYeWuZLBH() {
		return yeWuZLBH;
	}

	public void setYeWuZLBH(String yeWuZLBH) {
		this.yeWuZLBH = yeWuZLBH;
	}

	public Date getDatetimeEnd() {
		return datetimeEnd;
	}

	public Date getDatetimeStart() {
		return datetimeStart;
	}

	public void setDatetimeEnd(Date datetimeEnd) {
		this.datetimeEnd = datetimeEnd;
	}

	public void setDatetimeStart(Date datetimeStart) {
		this.datetimeStart = datetimeStart;
	}

	public String getYeWuZLMC() {
		return yeWuZLMC;
	}

	public void setYeWuZLMC(String yeWuZLMC) {
		this.yeWuZLMC = yeWuZLMC;
	}

	public String getHandleEndTimeXS() {
		if (this.ftn_HandleEndTime == null) {
			return null;
		} else {
			return new SimpleDateFormat("yyyy-MM-dd HH:mm").format(this.ftn_HandleEndTime);
		}
	}

	// getFtn_HandleEndTime

	public Date getEnddatetimeStart() {
		return enddatetimeStart;
	}

	public void setEnddatetimeStart(Date enddatetimeStart) {
		this.enddatetimeStart = enddatetimeStart;
	}

	public Date getEnddatetimeEnd() {
		return enddatetimeEnd;
	}

	public void setEnddatetimeEnd(Date enddatetimeEnd) {
		this.enddatetimeEnd = enddatetimeEnd;
	}

	public void setHandleEndTimeXS(String handleEndTimeXS) {
		this.handleEndTimeXS = handleEndTimeXS;
	}

	public Integer getXiangMuZT() {
		return xiangMuZT;
	}

	public void setXiangMuZT(Integer xiangMuZT) {
		this.xiangMuZT = xiangMuZT;
	}

	public String getDatagridType() {
		return datagridType;
	}

	public void setDatagridType(String datagridType) {
		this.datagridType = datagridType;
	}

	public String getLiuChengJDCLR() {
		return LiuChengJDCLR;
	}

	public void setLiuChengJDCLR(String liuChengJDCLR) {
		LiuChengJDCLR = liuChengJDCLR;
	}

	public String getZuZhiJGMC() {
		return zuZhiJGMC;
	}

	public void setZuZhiJGMC(String zuZhiJGMC) {
		this.zuZhiJGMC = zuZhiJGMC;
	}

	public Date getFlowCreateTime() {
		return flowCreateTime;
	}

	public void setFlowCreateTime(Date flowCreateTime) {
		this.flowCreateTime = flowCreateTime;
	}

	public String getXiangMuBH() {
		return xiangMuBH;
	}

	public void setXiangMuBH(String xiangMuBH) {
		this.xiangMuBH = xiangMuBH;
	}

	public String getLiuChengJD() {
		return liuChengJD;
	}

	public void setLiuChengJD(String liuChengJD) {
		this.liuChengJD = liuChengJD;
	}

	public String getCuiBanRId() {
		return cuiBanRId;
	}

	public void setCuiBanRId(String cuiBanRId) {
		this.cuiBanRId = cuiBanRId;
	}

	public String getQiYeMCs() {
		return qiYeMCs;
	}

	public void setQiYeMCs(String qiYeMCs) {
		this.qiYeMCs = qiYeMCs;
	}

	public String getBuZhouNames() {
		return buZhouNames;
	}

	public void setBuZhouNames(String buZhouNames) {
		this.buZhouNames = buZhouNames;
	}

	public String getFtnids() {
		return ftnids;
	}

	public void setFtnids(String ftnids) {
		this.ftnids = ftnids;
	}

	public String getFtn_Assignees() {
		return ftn_Assignees;
	}

	public void setFtn_Assignees(String ftn_Assignees) {
		this.ftn_Assignees = ftn_Assignees;
	}

	public String getEditVersion() {
		return editVersion;
	}

	public void setEditVersion(String editVersion) {
		this.editVersion = editVersion;
	}

	@Override
	public int hashCode() {
		if (this.getFtn_ID() == null)
			return super.hashCode();
		int prime = 0;
		prime += this.getFtn_ID().hashCode();
		return prime;
	}

	@Override
	public boolean equals(Object obj) {
		boolean isEquals = false;
		if (obj != null && this.getClass() == obj.getClass()) {
			FlowTaskNode clazz = (FlowTaskNode) obj;
			if (clazz.getFtn_ID().equals(this.getFtn_ID()))
				isEquals = true;
			return isEquals;
		}
		return isEquals;
	}

}